﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sl.Upload.Models
{
    /// <summary>
    /// 截剪信息
    /// </summary>
    public class CutInfo
    {
        /// <summary>
        /// X坐标
        /// </summary>
        public int X { get; set; }
        /// <summary>
        /// Y坐标
        /// </summary>
        public int Y { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int Height { get; set; }
        /// <summary>
        /// 图片缩放宽
        /// </summary>
        public int RatioWidth { get; set; }
        /// <summary>
        /// 图片缩放高
        /// </summary>
        public int RatioHeight { get; set; }
        /// <summary>
        /// 生成路径
        /// </summary>
        public string GeneratePath { get; set; }

        private bool isMode = true;

        /// <summary>
        /// true：将图片缩放到指定的宽度截剪，false：将图片按指定的X,Y,和缩放比率截剪
        /// </summary>
        public bool Mode { get { return isMode; } set { isMode = value; } }
    }
}
